package logic

import "os"

type Docker struct {
	*Unit
}

func (container *Docker) Analyse(info *UnitInfo) error {
	return nil
}

func (container *Docker) Start() error {
	return nil
}

func (container *Docker) Find() bool {
	return false
}

func (container *Docker) Stop() error {
	return nil
}

func (container *Docker) Clean() error {
	if !container.Info.IsOrigin || container.Info.IsDownload {
		// 删除工作目录
		_ = os.RemoveAll(container.Info.WorkDir)
	}
	return nil
}

func (container *Docker) Watch() map[string]interface{} {
	return map[string]interface{}{}
}
